﻿using System;

using Fuse8.DomainFramework.Common;

using Fuse8.ContentManagementFramework.SystemFacade.Common;

namespace Fuse8.ContentManagementFramework.SystemFacade.Extensions
{
    public static class FileSizeExtension
    {
        public static string ToFileSize(this long fileSize)
        {
            return string.Format(new FileSizeFormatProvider(), "{0:" + FileSizeFormatProvider.FileSizeFormat + "}", fileSize);
        }
    }
}
